package com.michau.testitas.common.model.definition;

import javax.persistence.DiscriminatorValue;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * User: michau
 * Date: 1/9/13
 * Time: 8:54 PM
 */
@DiscriminatorValue("audio")
public class AudioContent extends Content {

    public enum SupportedFormats{
        MP3,
        WAV
    }

    @Enumerated(EnumType.STRING)
    private SupportedFormats format;

    public SupportedFormats getFormat() {
        return format;
    }

    public void setFormat(SupportedFormats format) {
        this.format = format;
    }

}
